package com.lanou3g.ptp.sign.service;

import com.lanou3g.ptp.entity.Sign;
import com.lanou3g.ptp.entity.TempRecord;
import com.lanou3g.ptp.vo.SignCalendarResult;
import com.lanou3g.ptp.vo.SimpleAttdVO;

import java.util.Date;
import java.util.List;

public interface SignService {
    boolean sign(Sign sign);

    List<Sign> findByTaskIdAndStudentId(Long taskId, Long studentId);

    List<SignCalendarResult> findSignCalendar(Long taskId, Long studentId);

    List<SimpleAttdVO> signDetails(Long taskId, Long studentId);

    SignCalendarResult findSignCalendarToday(Long taskId, Long studentId);

    int getTimesInARow(Long taskId, Long studentId);

    int getTimesPerWeek(Long taskId, Long studentId);

    int getTimesInTotal(Long taskId, Long studentId);

    TempRecord findByStartTimeAndEndTimeAndId(Date nowTime, Long tempId);
}
